import React from 'react'

import {useDispatch,useSelector} from "react-redux"

export default function Movie() {
  // 推送值上去共享状态
  const count=useSelector(state=>state.count.count)
  const dispatch=useDispatch();
  const movieHandle=()=>{
    dispatch()
  }

  return (
    <div>
      <h1>我是Movie组件</h1>
      <p>我收到的Count组件的值是 {count}</p>

      <ul>
      
      </ul>
      <button onClick={movieHandle}>电影数据</button>
    </div>
  )
}
